package com.zhxh.nzpos.model;

import java.io.Serializable;

/**
 * 商品信息
 * 
 * @author Administrator
 * 
 */
public class Goods implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id; // id  商品编号
	private String categoryId; // 分类id
	private String categoryName; // 分类name

	private String name; // 商品名称
	private String units1; // 整卖单位
	private String units2; // 散卖单位
	private String specification; // 规格
	private float price1; // 整卖价格
	private float price2; // 散卖价格
	private String note; // 备注
	private int Ponits; // 积分
	private long  created; //创建时间
    private long modified;  //修改时间
    private String code;  //条码
    
    private int type = 0; // 手动添加的商品还是导入的商品； 0 default 导入；1手动添加
    
    
    
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public long getCreated() {
		return created;
	}

	public void setCreated(long created) {
		this.created = created;
	}

	public long getModified() {
		return modified;
	}

	public void setModified(long modified) {
		this.modified = modified;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}


	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getUnits1() {
		return units1;
	}

	public void setUnits1(String units1) {
		this.units1 = units1;
	}

	public String getUnits2() {
		return units2;
	}

	public void setUnits2(String units2) {
		this.units2 = units2;
	}

	public float getPrice1() {
		return price1;
	}

	public void setPrice1(float price1) {
		this.price1 = price1;
	}

	public float getPrice2() {
		return price2;
	}

	public void setPrice2(float price2) {
		this.price2 = price2;
	}

	public int getPonits() {
		return Ponits;
	}

	public void setPonits(int ponits) {
		Ponits = ponits;
	}

	public String toString() {
		return "Goods [id=" + id + ",categoryId=" + categoryId + ",categoryName=" + categoryName + ",code=" + code + ",name="
				+ name + ",units1=" + units1 +",units2=" + units2 + ",specification=" + specification
				+ ",price1=" + price1 + ",price2=" + price2 +",Ponits=" + Ponits + ",note=" + note
				+  ",created=" + created
				+ ",modified=" + modified
				+"]";
	}
}
